import Vue from 'vue'
import App from './App.vue'
import './registerServiceWorker'
import router from './router'
import store from './store'
import './plugins/element.js'

import './assets/css/global.css'

import './assets/fonts/iconfont.css'
// axios
import axios from 'axios'
//css3
import animated from 'animate.css' // npm install animate.css --save安装，再引入
Vue.use(animated)

// ...
import 'fullpage.js/vendors/scrolloverflow';
import VueFullPage from 'vue-fullpage.js';
// ...
Vue.use(VueFullPage);


Vue.prototype.$http = axios
//设置axios请求的根路径
axios.defaults.baseURL = 'https://lianghj.top:8888/api/private/v1/'

// 请求拦截器
axios.interceptors.request.use(config => {
  console.log(config);
  config.headers.Authorization = window.sessionStorage.getItem('token')
  return config
})




Vue.config.productionTip = false

new Vue({
  router,
  store,
  render: h => h(App)
}).$mount('#app')
